2020-2021 Sunseeker Telemetry and Lighting System
eusci_a_uart_ex1_loopbackAdvanced.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Functions

void main (void)
 
void EUSCI_A0_ISR (void)
 

Variables

uint16_t i
 
uint8_t RXData = 0
 
uint8_t TXData = 0
 
uint8_t check = 0
 

Function Documentation

◆ EUSCI_A0_ISR()

void EUSCI_A0_ISR ( void  )

Definition at line 134 of file eusci_a_uart_ex1_loopbackAdvanced.c.

References check, RXData, and TXData.

◆ main()

void main ( void  )

Definition at line 68 of file eusci_a_uart_ex1_loopbackAdvanced.c.

References check, param, STATUS_FAIL, and TXData.

Variable Documentation

◆ check

uint8_t check = 0

Definition at line 66 of file eusci_a_uart_ex1_loopbackAdvanced.c.

Referenced by EUSCI_A0_ISR(), main(), and USCI_A0_ISR().

◆ i

uint16_t i

EUSCI_A0 External Loopback test using EUSCI_A_UART_init API

Description: This demo connects TX to RX of the MSP430 UART The example code shows proper initialization of registers and interrupts to receive and transmit data.

ACLK = BRCLK = 32.768kHz, MCLK = SMCLK = DCO/8 = ~1MHz

       Tested on MSP430F67791A
        -----------------
  RST -|     P3.0/UCA0RXD|----|
       |                 |    |
       |                 |    |
       |     P3.1/UCA0TXD|----|
       |                 |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • UART peripheral
  • GPIO Port peripheral (for UART pins)
  • UCA0TXD
  • UCA0RXD

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • USCI_A0_VECTOR.

Definition at line 64 of file eusci_a_uart_ex1_loopbackAdvanced.c.

◆ RXData

uint8_t RXData = 0

Definition at line 65 of file eusci_a_uart_ex1_loopbackAdvanced.c.

Referenced by EUSCI_A0_ISR(), and USCI_A0_ISR().

◆ TXData

uint8_t TXData = 0

Definition at line 65 of file eusci_a_uart_ex1_loopbackAdvanced.c.

Referenced by EUSCI_A0_ISR(), main(), and USCI_A0_ISR().